import React, { Component } from 'react';
import DynamicIcon from 'dynamic-icon';

// 使用 custom 生成自定义 ICON 组件
const CustomIcon = DynamicIcon.create({
    fontFamily: 'iconfont',
    prefix: 'icon',
    css: 'https://at.alicdn.com/t/font_661235_dounab8q31g.css'
});

export default class SysDynamicIcon extends Component{
    render() {
        return (
            <CustomIcon size={this.props.size} type={this.props.type} style={this.props.style} />
        )
    }

}